package com.marvin.controller;

import freemarker.core.TokenMgrError;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author yinyin
 * @create 2021/12/02 下午 3:31
 */
@Controller
public class ErrorPageController implements ErrorController {

    @GetMapping("/error")
    public String toError(){
        return "error/404";
    }
}
